﻿<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <link href="~/css/metro-bootstrap.css" rel="stylesheet" />

    <script src="~/js/jquery.min.js"></script>
    <script src="~/js/jquery.widget.min.js"></script>
    <script src="~/js/metro.min.js"></script>
</head>
<body>
    <div class="metro">
        <header>
            <nav class="navigation-bar dark">
                <nav class="navigation-bar-content container" style="margin-left: 200px">
                    <ul class="element-menu">
                    </ul>
                    <span class="element-divider"></span>
                    <a href="/" class="element place-left">FILM BOOKING TICKET</a>
                    <div class="element place-right" style="position: absolute; right: 3px; z-index: 30; height: 2px; font-size: large">
                        Chào @this.Session["Account"],
                        <a href="#"  style="color: orange; text-decoration: underline" onclick=" LogOut() ">ĐĂNG XUẤT</a>
                        </div>
                    <span class="element-divider place-right"></span>
                </nav>
            </nav>
        </header>
        <table>
            <tr>
                <td style="vertical-align: text-top">
                    <div style="border-right: solid; border-right-width: thin;">
                        @Html.Partial("~/Views/Shared/_Admenu.cshtml")
                    </div>
                </td>
                <td style="padding: 1px 1px 1px 10px; vertical-align: text-top">
                    <div>
                        @RenderBody()
                    </div>
                </td>
                <td></td>
            </tr>
        </table>
    </div>
</body>
    <script>
        //Logout-hungph
        function LogOut() {
            $.ajax({
                url: '/AccessPermission/LogOut',
                type: 'POST',
                success: function (response) {
                    if (response == "Success") {
                        window.location.href = "/Home";
                    } else {
                        alert("Không thể đăng xuất!!!");
                    }
                }
            });
        }
</script>
</html>
